-- GENERATED SPELL FOR [Algar the Chosen] --


function spell0_29872(pUnit, Event) --@Dreadful Roar,Self--
pUnit:FullCastSpellOnTarget(42729,pUnit)
pUnit:RegisterEvent('Sorts_29872', 10000, 1)
end

function Sorts_29872(pUnit, Event)
local choix_sorts_29872 = math.random(0, 0)
if choix_sorts_29872 == 0 then
pUnit:RegisterEvent('spell0_29872', 1, 1)
end
end

function mob29872_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29872', math.random(1500, 3000), 1)
end

function mob29872_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29872_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29872_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29872, 1, 'mob29872_Action')
RegisterUnitEvent(29872, 2, 'mob29872_Leave')
RegisterUnitEvent(29872, 3, 'mob29872_Kill')
RegisterUnitEvent(29872, 4, 'mob29872_Die')
